package Database;

import java.util.Date;

public class UserInfo {
	private String username;
	private String email;
	private Integer score;
	private Integer amountGames;
	private Date lastLogin;
	private Date creationDate;
	private long id;
	
	public UserInfo(String username){
		this.username = username;
	}
	
	public UserInfo(String username, String email, Integer score, Integer amountGames, Date lastLogin, Date creationDate){
		this.username=username;
		this.email=email;
		this.score=score;
		this.amountGames=amountGames;
		this.lastLogin=lastLogin;
		this.creationDate=creationDate;
	}
	/**
	 * @param username the username to set
	 */
	public void setUsername(String username) {
		this.username = username;
	}
	/**
	 * @return the username
	 */
	public String getUsername() {
		return username;
	}
	/**
	 * @param score the score to set
	 */
	public void setScore(Integer score) {
		this.score = score;
	}
	/**
	 * @return the score
	 */
	public Integer getScore() {
		return score;
	}
	/**
	 * @param amountGames the amountGames to set
	 */
	public void setAmountGames(Integer amountGames) {
		this.amountGames = amountGames;
	}
	/**
	 * @return the amountGames
	 */
	public Integer getAmountGames() {
		return amountGames;
	}
	/**
	 * @param lastLogin the lastLogin to set
	 */
	public void setLastLogin(Date lastLogin) {
		this.lastLogin = lastLogin;
	}
	/**
	 * @return the lastLogin
	 */
	public Date getLastLogin() {
		return lastLogin;
	}
	/**
	 * @param creationDate the creationDate to set
	 */
	public void setCreationDate(Date creationDate) {
		this.creationDate = creationDate;
	}
	/**
	 * @return the creationDate
	 */
	public Date getCreationDate() {
		return creationDate;
	}
	/**
	 * @param email the email to set
	 */
	public void setEmail(String email) {
		this.email = email;
	}
	/**
	 * @return the email
	 */
	public String getEmail() {
		return email==null ? "none" : email;
	}
	
	public long getID() {
		return this.id;
	}

	/**
	 * @param id the id to set
	 */
	public void setId(long id) {
		this.id = id;
	}

	/**
	 * @return the id
	 */
	public long getId() {
		return id;
	}
}
